Skip to content

Add more logging to dotnet test tracing #47449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Mar 11, 2025

Related to #45927

@Copilot Copilot AI review requested due to automatic review settings March 11, 2025 09:38
@Youssef1313 Youssef1313 requested a review from a team as a code owner March 11, 2025 09:38
@ghost ghost added Area-dotnet test untriaged Request triage from a team member labels Mar 11, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR enhances the tracing for dotnet test execution by adding more logging to help diagnose project property evaluations.

  • Added new using directives to support additional logging.
  • Inserted multiple Logger.LogTrace calls to capture the state of project properties before and after re-evaluation.
  • Included conditional logging in cases where the target framework is invalid.

Reviewed Changes

File Description
src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs Added detailed trace logging around target framework evaluation and module creation

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/Cli/dotnet/commands/dotnet-test/SolutionAndProjectUtility.cs:132

  • The TODO comment indicates that the intended behavior when the project is considered invalid is not fully defined. Consider clarifying and implementing proper error handling or detailed documentation for this branch.
                else

@Youssef1313 Youssef1313 force-pushed the dev/ygerges/more-logging-dotnet-test branch from 3e93a12 to 1f8b468 Compare March 11, 2025 09:44
@Youssef1313 Youssef1313 enabled auto-merge March 11, 2025 09:55
@Youssef1313 Youssef1313 merged commit 0bb5378 into main Mar 11, 2025
39 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/more-logging-dotnet-test branch March 11, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-dotnet test untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants